<template>
  <div>
    <button @click="add">点击</button>
  </div>
</template>

<script>
import { ImagePreview } from 'vant'
export default {
  data() {
    return {}
  },
  methods: {
    add() {
      ImagePreview({
        images: [
          'https://img01.yzcdn.cn/vant/apple-1.jpg',
          'https://img01.yzcdn.cn/vant/apple-2.jpg'
        ],
        startPosition: 1
      })
    }
  }
}
</script>

<style></style>
